package me.android.library.common.event;

import android.app.Activity;
import android.content.Intent;

import lombok.Data;
import mylab.base.foundation.event.BaseEvent;


/**
 * Created by sylar on 15/8/7.
 */
public class ActivityResultEvent extends BaseEvent<Activity, ActivityResultEvent.ActivityResult> {


    public ActivityResultEvent(Activity activity, ActivityResult activityResult) {
        super(activity, activityResult);
    }

    public ActivityResult getActivityResult() {
        return getContent();
    }

    @Data
    public static class ActivityResult {
        private int requestCode;
        private int resultCode;
        private Intent intent;

        public ActivityResult(int requestCode, int resultCode, Intent intent) {
            this.requestCode = requestCode;
            this.resultCode = resultCode;
            this.intent = intent;
        }
    }


}